package com.suthund.frame.exception;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.suthund.consts.NetConst;

/**
 *
 * Created by yangkang on 17/4/18.
 */
@JsonAutoDetect(getterVisibility = JsonAutoDetect.Visibility.NONE)
public class CheckResultException extends RuntimeException {

    private Integer code;

    public CheckResultException(String msg) {
        super(msg);
        code = NetConst.FAILED;
    }

    public int getCode() {
        return code;
    }
}


